package com.stormrage.entity.exam;

import java.io.Serializable;

public class ExmTermScore implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = -3267175225761232662L;

	// ------------------------------- Fields -------------------------------

	private Integer id;

	private Integer termId;

	private Integer sele;

	private Integer mult;

	private Integer corr;

	// ------------------------------- Fields -------------------------------

	public ExmTermScore() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getTermId() {
		return termId;
	}

	public void setTermId(Integer termId) {
		this.termId = termId;
	}

	public Integer getSele() {
		return sele;
	}

	public void setSele(Integer sele) {
		this.sele = sele;
	}

	public Integer getMult() {
		return mult;
	}

	public void setMult(Integer mult) {
		this.mult = mult;
	}

	public Integer getCorr() {
		return corr;
	}

	public void setCorr(Integer corr) {
		this.corr = corr;
	}

	// ------------------------------- Fields -------------------------------

	public static ExmTermScore instance(Integer termId) {
		ExmTermScore entity = new ExmTermScore();
		entity.setTermId(termId);
		entity.setSele(0);
		entity.setMult(0);
		entity.setCorr(0);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : id - " + id + " termId - " + termId + " sele - " + sele + " mult - " + mult
				+ " corr - " + corr;
	}

}
